simple primesieve algorithm for quick generation of primes
